package
{
	import flash.display.MovieClip;
	import flash.events.Event;
	
	public class character extends MovieClip
	{
		private var _vx:int;
		private var _vy:Number;
		public var isOnPlatform:Boolean=false;
		public function character()
		{
			vy=0;
			super();
			this.addEventListener(Event.ENTER_FRAME, moveCharacter)
		}
		
		public function moveCharacter(e:Event):void
		{
			vyAcceleration();
			trace(vy);
			if(!isOnPlatform)
			{
				this.y+=vy;
			}
			this.x+=vx;
		}
		public function vyAcceleration():void
		{
			vy+=20*1.0/30;
		}
		public function get vy():Number
		{
			return _vy;
		}

		public function set vy(value:Number):void
		{
			_vy = value;
		}

		public function get vx():int
		{
			return _vx;
		}
		
		public function set vx(v:int):void
		{
			_vx = v;
		}
	}
}